<template>
  <div class="child">
    <h2>父给的isAgree：{{ isAgree }}</h2>
    <input type="checkbox" :checked="isAgree" @click="updateIsAgree(!isAgree)">同意协议
  </div>
</template>

<script>
  export default {
    name:'Child',
    props:['isAgree','updateIsAgree']
  }
</script>

<style scoped>
  /* 此处写样式 */
  .child {
    margin-top: 10px;
    background-color: skyblue;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px;
  }
</style>